package com.hunt.controller;

import com.hunt.model.entity.StockInfo;
import com.hunt.service.MainNetInflowService;
import com.hunt.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Api(value = "各级资金流向")
@Controller
@RequestMapping(path = "/MainNetInflow")
public class MainNetInflowController {
    private MainNetInflowService mainNetInflowService;
    @ApiOperation(value = "交易提示查询", httpMethod = "GET", produces = "application/json", response = Result.class)
    @ResponseBody
    @RequestMapping(value = "getMainNetInflow", method = RequestMethod.GET)
    public Result findIndexNewsInfo(String stocecode) {
        StockInfo stockInfo=mainNetInflowService.getStockInfo(stocecode);
        return  Result.success(stockInfo);
    }
}
